﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoreEx.Database.Query;

namespace CoreEx.Database.Linq
{
    /// <summary>
    /// Represents a class that is capable of executing the translated <see cref="IExpression"/>
    /// and populate the <see cref="ITranslateResult.Table"/> property.
    /// </summary>
    public interface IExecutor
    {
        /// <summary>
        /// Executes the <see cref="ITranslateResult.DbExpression"/> and populates the <see cref="ITranslateResult.Table"/> property.
        /// </summary>
        /// <param name="translateResult"></param>
        void Execute(ITranslateResult_old translateResult);
    }
}
